import request from '@/utils/request'

// 查询产品列表
export function listProduct(query) {
  return request({
    url: '/ldzl-sc/sc/product/list',
    method: 'post',
    params: query,
    data: query
  })
}

// 查询产品库存状态
export function getProductStockStatus(productIds) {
  return request({
    url: '/ldzl-sc/sc/product/stockStatus',
    method: 'post',
    data: productIds
  })
}

// 检查产品是否可以直接出库
export function checkProductCanOutbound(productIds) {
  return request({
    url: '/ldzl-sc/sc/product/canOutbound',
    method: 'post',
    data: productIds
  })
}

// 检查产品是否需要生产
export function checkProductNeedProduction(productIds) {
  return request({
    url: '/ldzl-sc/sc/product/needProduction',
    method: 'post',
    data: productIds
  })
} 